package com.ljfresh.customer.result;

import com.ljfresh.customer.data.GoodsOrderFidData;
import com.ljfresh.customer.exception.ErrorMap;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: Lucifer
 * @time: 2020/5/9-11:35
 */
@ApiModel("查询调入单商品返回类")
@Data
@NoArgsConstructor
public class FindGoodsOrderFidResult  extends Result {
    @ApiModelProperty()
    private GoodsOrderFidData data;

    public FindGoodsOrderFidResult(Integer code){
        this.code = code;
        this.message = ErrorMap.map.get(code);
    }


    public FindGoodsOrderFidResult(GoodsOrderFidData data){
        this.code = 0;
        this.message = "请求成功";
        this.data = data;
    }
}
